package com.kpmg.datalake.common.dynamicdatasource;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;

/**
 * 数据库对象信息
 *
 * @author Alex.zhao
 */
public class DatabaseDTO implements Serializable {
    private static final long serialVersionUID = 2717169020223768220L;
    /**
     * ip
     */
    private String ip;
    /**
     * port
     */
    private String port;
    /**
     * dbName
     */
    private String dbName;
    /**
     * userName
     */
    private String userName;
    /**
     * password
     */
    private String password;
    /**
     * dbType
     */
    private String dbType;
    /**
     * 拼接好的数据库连接串
     */
    private String url;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "DatabaseDTO" + JSONObject.toJSONString(this);
    }
}
